﻿using System.ComponentModel.DataAnnotations;
using ExtendedMvc.Common.EntityFramework;

namespace ExtendedMvc.WebTest.Model.Entities {
	[MetadataType(typeof(GroupMetadata))]
	partial class Group : ILogicalEntity {
		//public ICollection<IUser> Users {
		//    get { return UserList.Cast<IUser>().ToList(); }
		//    set { UserList = value.OfType<User>().ToList(); }
		//}
	}

	public class GroupMetadata : EntityMetadata {
		//[ScaffoldColumn(false)]
		//public object UserList { get; set; }

		//[Display(Name = "Users", AutoGenerateFilter = false)]
		//[DisplayName("Users")]
		//public object Users { get; set; }
	}
}
